<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
	<th:block th:include="include :: header('修改模型')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-model-edit" th:object="${model}">
            <input id="id" name="id" th:field="*{id}"  type="hidden">
<!--			<div class="form-group">	-->
<!--				<label class="col-sm-3 control-label">模型名称：</label>-->
<!--				<div class="col-sm-8">-->
<!--					<input id="modelName" name="modelName" th:field="*{modelName}" class="form-control" type="text">-->
<!--				</div>-->
<!--			</div>-->
<!--			<div class="form-group">	-->
<!--				<label class="col-sm-3 control-label">适用图像高：</label>-->
<!--				<div class="col-sm-8">-->
<!--					<input id="fitHeight" name="fitHeight" th:field="*{fitHeight}" class="form-control" type="text">-->
<!--				</div>-->
<!--			</div>-->
<!--			<div class="form-group">	-->
<!--				<label class="col-sm-3 control-label">适用图像宽：</label>-->
<!--				<div class="col-sm-8">-->
<!--					<input id="fitWidth" name="fitWidth" th:field="*{fitWidth}" class="form-control" type="text">-->
<!--				</div>-->
<!--			</div>-->
<!--			<div class="form-group">	-->
<!--				<label class="col-sm-3 control-label">输入通道数：</label>-->
<!--				<div class="col-sm-8">-->
<!--					<input id="inputChannel" name="inputChannel" th:field="*{inputChannel}" class="form-control" type="text">-->
<!--				</div>-->
<!--			</div>-->
<!--			<div class="form-group">	-->
<!--				<label class="col-sm-3 control-label">输出通道数：</label>-->
<!--				<div class="col-sm-8">-->
<!--					<input id="outputChannel" name="outputChannel" th:field="*{outputChannel}" class="form-control" type="text">-->
<!--				</div>-->
<!--			</div>-->
<!--			<div class="form-group">	-->
<!--				<label class="col-sm-3 control-label">上传时间：</label>-->
<!--				<div class="col-sm-8">-->
<!--					<input id="uploadTime" name="uploadTime" th:field="*{uploadTime}" class="form-control" type="text">-->
<!--				</div>-->
<!--			</div>-->
<!--			<div class="form-group">	-->
<!--				<label class="col-sm-3 control-label">归属用户：</label>-->
<!--				<div class="col-sm-8">-->
<!--					<input id="userId" name="userId" th:field="*{userId}" class="form-control" type="text">-->
<!--				</div>-->
<!--			</div>-->
<!--			<div class="form-group">	-->
<!--				<label class="col-sm-3 control-label">模型位置：</label>-->
<!--				<div class="col-sm-8">-->
<!--					<input id="location" name="location" th:field="*{location}" class="form-control" type="text">-->
<!--				</div>-->
<!--			</div>-->
			<div class="form-group">
				<label class="col-sm-3 control-label">是否公开：</label>
				<div class="col-sm-8">
					<!--                下拉框是或否-->
					<select id="isPublic" name="isPublic" th:field="*{isPublic}" class="form-control">
						<option value="1">是</option>
						<option value="0">否</option>
					</select>
					<!--                <input id="isPublic" name="isPublic" th:field="*{isPublic}" class="form-control" type="text">-->
				</div>
			</div>
		</form>
    </div>
    <div th:include="include::footer"></div>
    <script type="text/javascript">
		var prefix = ctx + "deep_learning/model";
		$("#form-model-edit").validate({
			rules:{
				xxxx:{
					required:true,
				},
			},
			focusCleanup: true

		});
		window.parent.postMessage('refreshTable', '*');
		function submitHandler() {
	        if ($.validate.form()) {
	            $.operate.save(prefix + "/edit", $('#form-model-edit').serialize());
	        }
			window.parent.postMessage('refreshTable', '*');
			// setTimeout(function (){
			//     $("#bootstrap-table").bootstrapTable('refresh', {
			//     });
			// },1000)
	    }
	</script>
</body>
</html>
